package com.xuerhua.yxt;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.xuerhua.yxt.model.StudentInfo;
import com.xuerhua.yxt.page.OrderBy;
import com.xuerhua.yxt.page.Page;
import com.xuerhua.yxt.reqVo.StudentReqVO;
import com.xuerhua.yxt.service.IStudentService;

public class ScoreService extends BaseTest {
	
	@Autowired
	private IStudentService studentService;
	
	@Test
	public void abc() {
		try {
			StudentReqVO vo = new StudentReqVO();
			Page<StudentInfo> page = new Page<>();
			page.setParams(vo);
			page.setPageNo(vo.getPage());
			page.setPageSize(Integer.MAX_VALUE - 1);
			List<OrderBy> sorts = new ArrayList<>();
			sorts.add(new OrderBy("年级"));
			sorts.add(new OrderBy("班号"));
			page.setSorts(sorts);
			List<StudentInfo> list = studentService.selectFullListByPage(page);
			System.out.println(list.size());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

	@Test
	public void score() {
		try {
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
